import os

os.chdir(r"D:\PycharmProjects\national_computer_rank_examination\第2套 无纸化考试题库试题")


txt = open("family.txt", 'r', encoding="utf-8")
# txt1 = txt.read()
txt1 = txt.readlines()
print(txt1)
print(txt)

txt.close()